import { lStorage } from './cache';
import token from '@/config/modules/cache';
const { tokenNameBr, duration } = token;

export function getToken() {
	return lStorage.get(tokenNameBr);
}

export function setToken(token) {
	lStorage.set(tokenNameBr, token, duration);
}

export function removeToken() {
	lStorage.remove(tokenNameBr);
}
